package com.thfw.test.view.mq;

import android.content.Context;

import java.util.List;

/**
 * Created by scooper_lxx on 2017/2/16.
 */

public interface IMqttManager {

    void setConfigBean(Context context, ConfigBean configBean);

    boolean connect();

    void disconnect();

    boolean isConnect();

    boolean publish(String topic, MessageModel messageModel);

    boolean subscribe(String topic);

    boolean subscribe(String[] topics);

    boolean unsubscribe(String[] topics);

    boolean unsubscribe(String topic);

    List<String> getSubTopics();

}
